//
//  HomeCell.m
//  CarStor
//
//  Created by 千锋 on 16/1/18.
//  Copyright (c) 2016年 1000phone. All rights reserved.
//

#import "HomeCell.h"
#import "BaoXian.h"
#import "Ext_fee.h"
#import "HomePageModel.h"


@interface HomeCell()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *styleLabel;
@property (weak, nonatomic) IBOutlet UILabel *powerLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end

@implementation HomeCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(HomePageModel *)model
{
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:[UIImage imageNamed:@"placeholder_image"]];
    self.styleLabel.text = model.car_type_name;
    self.powerLabel.text = model.class_name;
    
    Ext_fee *fee = model.extfee;
    BaoXian *b = fee.baoX;
    self.priceLabel.text = [NSString stringWithFormat:@"%@w",b.car_price];
}
@end
